import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";

export function orgPage(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/org/page`,
    method: "get",
    params
  });
}

export function orgAdd(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/org/add`,
    method: "post",
    data
  });
}

export function orgEdit(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/org/edit`,
    method: "post",
    data
  });
}

export function orgDetail(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/org/detail`,
    method: "get",
    params
  });
}

export function orgDelete(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/org/delete`,
    method: "post",
    data
  });
}
